package org.xqyy.eval.service;

import org.xqyy.eval.model.Dept;
import org.xqyy.eval.model.TDept;

import java.util.List;
import java.util.Map;

/**
 * Created by luoxiaoming on 16-12-24.
 */
public interface IDeptService {

    public void add(Map<String, Object> params);

    public void modify(Map<String, Object> params);

    public void delete(Map<String, Object> params);

    public Map<String, Object> loadOne(String deptCode);

    public List<Map<String, Object>> load(Map<String, Object> params);

    public List<TDept> selectAllDept();

    public List<TDept> selectDeptByGroupId(String groupCode);

    public  List<TDept> selectAllTDept();

    /**
     * 查询所有已启用的科室
     * @return
     */
    public  List<TDept> selectAllTDeptIsEnable();

    /**
     * 添加科室
     * @param tDept
     * @return
     */
    public  Boolean addTDept(TDept tDept);

    /**
     * 修改科室
     * @param tDept
     * @return
     */
    public  Boolean updateTDept(TDept tDept);

    /**
     * 根据ID查询科室
     * @param tDept
     * @return
     */
    public  TDept findTDeptById(TDept tDept);

    /**
     * 转换科室状态
     * @param tDept
     * @return
     */
    public  Boolean convertTDept(TDept tDept);
}
